package com.mobisys.live;


import net.unicon.cas.client.configuration.EnableCasClient;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.mobisys.live")
@ComponentScan( basePackages = "com.mobisys.live.*")
@EnableCasClient // 开启CAS支持
public class XidianliveApplication extends SpringBootServletInitializer {

	protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
		return application.sources(XidianliveApplication.class);
	}


	public static void main(String[] args) {
		SpringApplication.run(XidianliveApplication.class, args);
		Logger logger= LogManager.getLogger();
		logger.debug("spring boot application");
	}
}
